import {default as Layout, Welcome } from '@/layout'
import type { RouteRecordRaw } from 'vue-router';


export const constantRoutes: RouteRecordRaw[] = [
  {
    path: "/login",
    name: "登录页",
    meta: { hidden: true },
    component: () => import('@/views/login.vue'),
    
  },
  {
    path: "/welcome",
    name: "welcome",
    meta: { hidden: true },
    component: Welcome,
  }
];


export const dynamicRoutes: RouteRecordRaw[] = [
  {
    path: "/",
    component: Layout,
    redirect: "/dashboard",
    children: [
      {
        path: "dashboard",
        component: () => import('@/views/dashboard/index.vue'),
        name: "DashboardView",
        meta: { title: "首页", icon: "el-icon-odometer", affix: true },
      },
    ],
  }
]




export const constantTailRoutes: RouteRecordRaw[] = [
  {
    path: '/404',
    name: 'staticRoutes.notFound',
    component: () => import('@/views/error/404.vue'),
    meta: {
      hidden: true,
    },
  },
];